FROM python:3.12-slim
WORKDIR /app

ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple \
    PIP_EXTRA_INDEX_URL=https://pypi.org/simple

RUN pip install fastapi uvicorn 
COPY src .
EXPOSE 8000
CMD [ "python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000" ]
